#!/usr/bin/env node

const fs = require('fs');

const src = process.argv[2];
const dst = process.argv[3];

try {
  const data = fs.readFileSync(src);
  const stat = fs.statSync(src);
  fs.writeFileSync(dst, data, { mode: stat.mode });
} catch (err) {
  console.error('Error copying file:', err.message);
}